import React from 'react'
// import { useObserver } from 'mobx-react-lite'
// import useStore from '../context/useStore';

const Login: React.FC = () => {
    // let { my } = useStore();
    // let [phone, setPhone] = useState<string>();
    // let [code, setCode] = useState<string>();

    // useEffect(() => {
    //     my.getInfo()
    // }, []);

    // async function sendCode(){
    //     console.log('phone...', phone);
    //     if (/\d{11}/.test(phone)){
    //        let result = await my.getCode(phone);
    //       console.log(result)
    //     }
    // }

    // return useObserver(()=><div>
    //     <input type="number" placeholder="请输入您的手机号" value={phone} onChange={e=>setPhone(e.target.value)}/>
    //     <div>
    //         <input type="number" maxLength={6} placeholder="请输入手机号验证码"  value={code} onChange={e=>setCode(e.target.value)}/> 
    //         <button onClick={sendCode}>发送验证码</button>
    //     </div>
    // </div>)
    return (
        <div>
            登录页
        </div>
    )
}

export default Login;